﻿using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Controls;
namespace WPFExcelReport
{
    public partial class WD02
    {

        public WD02()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VWDECK();
            DataContext = MV;
            InitializeComponent();
            this.Name = "可用性管理";
        }
        public override void LOADBYAUF()
        {
            TBMain.Clear();
            if (ORDERNUM.Length == 0)
                return;
            AUFART = ORDERNUM.Substring(0, 1);
            KRS = ORDERNUM.Substring(1, 2);
            LFD = ORDERNUM.Substring(3, 6);
            if (IsLoaded)
                return;

            base.LOADBYAUF();
        }
        public override void OnAUFARTChg(string value)
        {
            switch (value)
            {
                default:
                case "K":
                    IsVK = true;
                    break;
                case "B":
                    IsEK = true;
                    break;
                case "P":
                    IsAB = true;
                    break;
            }
            base.OnAUFARTChg(value);
        }
    }
}
